import 'package:flutter/material.dart';

class SettingProvide with ChangeNotifier {
  List<Color> colorList = [
    Colors.red,
    Colors.pink,
    Colors.purple,
    Colors.deepPurple,
    Colors.indigo,
    Colors.blue,
    Colors.lightBlue,
    Colors.cyan,
    Colors.green,
    Colors.lime,
    Colors.yellow,
    Colors.amber,
    Colors.orange,
    Colors.deepOrange,
    Colors.brown,
    Colors.blueGrey,
    Colors.white,
    Colors.black,
  ];

  Color themeColor = Colors.pinkAccent;

  bool noImage = false;

  // 改变主题颜色
  void changeTheme(color){
    themeColor = color;
    notifyListeners();
  }

  // 无图模式
  void wantImage(bool yes){
    noImage = yes;
    notifyListeners();
  }
}